<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://www.dowebok.com/demo/2014/98/animate.min.css">
    <script src="./js/layer.js"></script>
    <style>
        html,
        body {
            height: 100%;
            width: 100%;
            margin: 0px;
            padding: 0px;
        }
    </style>
</head>
<body>
    <button>点击</button>

    <script>
        document.querySelector("button").onclick = function () {
            // layer.msg("登录成功!")

            layer.alert("登录成功!",{btn:["yes"]},function () {
                console.log("你点了确定");
            })
            // alert("登录成功")
        }
    </script>
</body>
</html>